<template>

  <div class="questions-body">

  <div class="top-tis">
    <Breadcrumb>
          <Breadcrumb-item>你当前位置</Breadcrumb-item>
          <Breadcrumb-item href="/index">首页</Breadcrumb-item>
          <Breadcrumb-item  href="/questions">业务服务</Breadcrumb-item>
      </Breadcrumb>
  </div>  

  <div class="questions-view">
  
  </div>

     <div class="more-recommend category">

        <div class="article">

          <div class="active-title">

              <p class="article-title" > {{name}} </p>

              <p class="article-message">
                  
                  <span> {{inTimes}}</span>

              </p>
            
          </div>

          <p class="article-content" v-html="contents"></p>

        </div>



    </div>

    <router-link style="background:#fff;font-size:14px;color:#2d8cf0;" class="term-herf" :to="{path: '/questions'}">返回</router-link>

  </div>
</template>
<style scoped>
   
@import '../../assets/css/ccm.css';
.questions-content{
    width: 1100px;
    margin: 12px auto;

  }

  .questions-content p{
    line-height: 42px;
  }
</style>

<script>


export default {
  
          
  data(){

    return {
      contents:'',
      name:'',
      inTimes:'',
      
    }

  },
  created() {

    this.getCarousel();

  },

  methods:{

    getCarousel(){

      this.$store.commit('mainLoading', true);

      this.$http.get('/business/'+ this.$route.query.id).then(
        res => {

          this.contents = res.data.data.contents;
          this.name = res.data.data.name;
          this.inTimes = res.data.data.created_at;
          
          this.$store.commit('mainLoading', false);


          }).catch(err => {
            this.$Notice.open({
              title: 'termlist',
            })
            // this.$Message.error( 'termlist');
        
        })
    },
      
  }
}
</script>

